package zju.dgm.service.distsqlservice;

import zju.dgm.dto.DFFilter;
import zju.dgm.dto.DataFrame;

public class ReturnFilter implements DFFilter {
    @Override
    public boolean isWanted(DataFrame df) {
        if (df == null) return false;
        return df.getType()==DataFrame.SERVER_RESPOND || df.getType()==DataFrame.ERR;
    }
}
